﻿#region Copyright(C) 2018 FI Ltd. All rights reserved.
// ==================================================================================================
// Copyright(C) 2018 FI Ltd. All rights reserved.
//
// SYSTEM NAME      : FI.Net Application Framework
// COMPONENT ID     : ApplicationContext
// COMPONENT DESC   : Session based contextual data sharing.
//
// CREATED DATE/BY  : 18 Aug 2018 / Tian Mi
//
// REVISION HISTORY :
// DATE/BY            SR#/CS/PM#/OTHERS      DESCRIPTION OF CHANGE
// ==================================================================================================
#endregion

using FI.Core.Configuration;
using System;

namespace FI.Core.ApplicationContexts.Configuration
{
    /// <summary>
    /// Define the call context locator data.
    /// </summary>
    public class CallContextLocatorData : ContextLocatorDataBase
    {
        /// <summary>
        /// Get the delegate to create provider instance.
        /// </summary>
        /// <param name="settings">The settings.</param>
        /// <returns>The delegate to create provider instance.</returns>
        public override Func<ContextLocatorBase> GetProviderCreator(ServiceLocatableSettings settings)
        {
            return () => new CallContextLocator();
        }
    }
}
